import 'package:built_collection/built_collection.dart';
import 'package:equatable/equatable.dart';

class DevicesToGooglePlayUserLink extends Equatable {
  const DevicesToGooglePlayUserLink({
    required this.googlePlayUserId,
    required this.deviceIds,
  });

  final String googlePlayUserId;
  final BuiltList<String> deviceIds;

  @override
  List<Object?> get props {
    return [
      googlePlayUserId,
      deviceIds,
    ];
  }

  DevicesToGooglePlayUserLink copyWith({
    String Function()? googlePlayUserId,
    BuiltList<String> Function()? deviceIds,
  }) {
    return DevicesToGooglePlayUserLink(
      googlePlayUserId: googlePlayUserId == null ? this.googlePlayUserId : googlePlayUserId(),
      deviceIds: deviceIds == null ? this.deviceIds : deviceIds(),
    );
  }
}
